<div class="container-fluid bg-color-gray full-height">
	<div class="row normal-padding-top bg-color-white">
		<div class="col-xs-12">
			<div search-form data-submit="onSubmit()" 
				data-reset="onReset()" data-heights="[35,70]">
				<div class="full-height full-width" ng-include src="searchTempl"></div>
			</div>
		</div>
	</div>
	
	<!-- title & type-switch -->
	<div class="row">
		<div class="col-xs-6">
			<h4 ng-bind="indicator.label"></h4>
		</div>
		<div class="col-xs-6">	
			<ul class="radio_button pull-right bg-color-white" style="margin-bottom:10px;padding-left:0px;margin-top:10px;">
				<li ng-class="{'radio_button_active':serv.typeSelected=='all'}" ng-click="typeClick('all')" ng-show="indicator.type == 0">总</li>
				<li ng-class="{'radio_button_active':serv.typeSelected=='hosp'}" ng-click="typeClick('hosp')" ng-show="indicator.type == 1 || indicator.type==0">住</li>
				<li ng-class="{'radio_button_active':serv.typeSelected=='out'}" ng-click="typeClick('out')" ng-show="indicator.type == 2 || indicator.type==0">门</li>
			</ul>
		</div>
	</div>
	
	<!-- data content -->
	<div class="row full-width" style="position:absolute;bottom:0px;overflow-y:auto;" ng-class="{'search-more-hide':searchMoreHide, 'search-more-show':!searchMoreHide}">
		<!-- charts -->
		<div class="col-xs-12" ui-view="charts">
			
		</div>
		
		<div class="col-xs-12" ui-view="">
			
		</div>
	</div>
	
</div>
<fwa-loading data-show="settleAnalyseService.loading">
	加载中...
</fwa-loading>
<script type="text/ng-template" id="regionView_search_templ">
  <div class="row">
  		<div class="form-group  col-xs-4">
			<label class="col-xs-4 control-label text-right">结算时间:</label>
			<div class="col-xs-8">
				<date-range-input class="full-width" ng-model="query.date" data-type="year" data-format="yyyy-mm"></date-range-input>
			</div>
		</div>
		 
		 <div class="form-group col-xs-4">
		    <label class="control-label col-xs-4 text-right">机构等级:</label>
		    <div class="col-xs-8">
				<select ui-select2="{allowClear:true}" ng-disabled="orgLevel" class="full-width"
				   ng-model="query.orgLevel">
					<option value=""></option>
					<option ng-repeat="data in orgLevelDatas"
								value="{{data.code}}">{{data.name}}</option>
				</select>
		    </div>
		 </div>
		 
		 <div class="form-group col-xs-4">
		    <label class="control-label col-xs-4 text-right">机构名称:</label>
		    <div class="col-xs-8">
				<select-container container-data="settleAnalyseService.medicalOrgInfoList" clear="true" text="medicalOrgName" 
									    code="medicalOrgCode" result="query.org" 
									    data-type="true"  search-datas="['medicalOrgName','namePysr','nameWubi']" >
				</select-container>


		    </div>
		 </div>
	</div>
	
	<div class="row" ng-hide="searchMoreHide">
		<div class="form-group col-xs-4">
		    <label class="control-label col-xs-4 text-right">机构类型:</label>
		    <div class="col-xs-8">
				<select ui-select2="{allowClear:true}" ng-disabled="orgCategory" class="full-width"
				   ng-model="query.orgCategory">
					<option value=""></option>
					<option ng-repeat="data in communityService.medicalOrgTypeDatas"
								value="{{data.code}}">{{data.name}}</option>
				</select>
		    </div>
		</div>
		 
		<div class="form-group col-xs-4 ">
		    <label class="control-label col-xs-4 text-right">科室:</label>
		    <div class="col-xs-8">
		    	<select ui-select2="{allowClear:true}" class="full-width" ng-model="query.depart">
				   	<option value=""></option>
					<option ng-repeat="data in settleAnalyseService.medicalDeptInfoList" value="{{data.deptCode}}">{{data.deptName}}</option>
				</select>
		    </div>
		 </div>
		 <!--
		<div class="form-group col-xs-4">
		    <label class="control-label col-xs-4 text-right">医生:</label>
		    <div class="col-xs-8">
				<input type="text" class="form-control"   ng-model="query.doctor">
		    </div>
		</div>
		-->
	</div>
</script>


<script type="text/ng-template" id="orgView_search_templ">
	<div class="row">
  		<div class="form-group  col-xs-4">
			<label class="col-xs-4 control-label text-right">结算时间:</label>
			<div class="col-xs-8">
				<date-range-input class="full-width" ng-model="query.date" data-type="year" data-format="yyyy-mm"></date-range-input>
			</div>
		</div>
		 <div class="form-group col-xs-4">
		    <label class="control-label col-xs-4 text-right" for="orgName">机构名称:</label>
		    <div class="col-xs-8">
		    	<select-container container-data="settleAnalyseService.medicalOrgInfoList" clear="true" text="medicalOrgName" 
									    code="medicalOrgCode" result="query.org" 
									    data-type="true"  search-datas="['medicalOrgName','namePysr','nameWubi']" >
			</select-container>


		    </div>
		</div>
		<div class="form-group col-xs-4 ">
		    <label class="control-label col-xs-4 text-right" for="orgName">科室:</label>
		    <div class="col-xs-8">
				<select ui-select2="{allowClear:true}" class="full-width" ng-model="query.depart">
				   	<option value=""></option>
					<option ng-repeat="data in settleAnalyseService.medicalDeptInfoList" value="{{data.deptCode}}">{{data.deptName}}</option>
				</select>
		    </div>
		 </div>
		 <!--
		<div class="form-group col-xs-4">
		    <label class="control-label col-xs-4 text-right" for="orgName">医生:</label>
		    <div class="col-xs-8">
				<input type="text" class="form-control"   ng-model="query.doctor">
		    </div>
		</div>
		 -->
	</div>
	
	<div class="row" ng-hide="searchMoreHide">
		<div class="form-group col-xs-4 ">
		    <label class="control-label col-xs-4 text-right" for="orgName">机构等级:</label>
		    <div class="col-xs-8">
		    	<select ui-select2="{allowClear:true}" ng-disabled="orgLevel" class="full-width"
				   ng-model="query.orgLevel">
					<option value=""></option>
					<option ng-repeat="data in orgLevelDatas"
								value="{{data.code}}">{{data.name}}</option>
				</select>
		    </div>
		</div>
		 
		<div class="form-group col-xs-4">
		    <label class="control-label col-xs-4 text-right" for="orgName">机构类型:</label>
		    <div class="col-xs-8">
				<select ui-select2="{allowClear:true}" ng-disabled="orgCategory" class="full-width"
				   ng-model="query.orgCategory">
					<option value=""></option>
					<option ng-repeat="data in communityService.medicalOrgTypeDatas"
								value="{{data.code}}">{{data.name}}</option>
				</select>
		    </div>
		</div>
	</div>
</script>

<script type="text/ng-template" id="regionView_search_templ2">
  <div class="row">
  		<div class="form-group  col-xs-4">
			<label class="col-xs-4 control-label text-right">结算时间:</label>
			<div class="col-xs-8">
				<date-range-input class="full-width" ng-model="query.date" data-type="year" data-format="yyyy-mm"></date-range-input>
			</div>
		</div>
		 
		 <div class="form-group col-xs-4 ">
		    <label class="control-label col-xs-4 text-right">机构等级:</label>
		    <div class="col-xs-8">
		    	<select ui-select2="{allowClear:true}" ng-disabled="orgLevel" class="full-width"
				   ng-model="query.orgLevel">
					<option value=""></option>
					<option ng-repeat="data in orgLevelDatas"
								value="{{data.code}}">{{data.name}}</option>
				</select>
		    </div>
		 </div>
		 
		 <div class="form-group col-xs-4">
		    <label class="control-label col-xs-4 text-right">机构名称:</label>
		    <div class="col-xs-8">
		   			<select-container container-data="settleAnalyseService.medicalOrgInfoList" clear="true" text="medicalOrgName" 
									    code="medicalOrgCode" result="query.org" 
									    data-type="true"  search-datas="['medicalOrgName','namePysr','nameWubi']" >
					</select-container>

		    </div>
		 </div>
	</div>
	
	<div class="row" ng-hide="searchMoreHide">
		<div class="form-group col-xs-4">
		    <label class="control-label col-xs-4 text-right">机构类型:</label>
		    <div class="col-xs-8">
				<select ui-select2="{allowClear:true}" ng-disabled="orgCategory" class="full-width"
				   ng-model="query.orgCategory">
					<option value=""></option>
					<option ng-repeat="data in communityService.medicalOrgTypeDatas"
								value="{{data.code}}">{{data.name}}</option>
				</select>
		    </div>
		</div>
	</div>
</script>

<script type="text/ng-template" id="regionView_search_templ3">
	<div class="row">
 		<div class="form-group  col-xs-4">
			<label class="col-xs-4 control-label text-right">结算时间:</label>
			<div class="col-xs-8">
				<date-range-input class="full-width" ng-model="query.date" data-type="year" data-format="yyyy-mm"></date-range-input>
			</div>
		</div>
		 
		 <div class="form-group col-xs-4 text-right">
		    <label class="control-label col-xs-4">机构等级:</label>
		    <div class="col-xs-8">
				<select ui-select2="{allowClear:true}" ng-disabled="orgLevel" class="full-width"
				   ng-model="query.orgLevel">
					<option value=""></option>
					<option ng-repeat="data in orgLevelDatas"
								value="{{data.code}}">{{data.name}}</option>
				</select>
		    </div>
		 </div>
		 
		 <div class="form-group col-xs-4">
		    <label class="control-label col-xs-4 text-right">机构名称:</label>
		    <div class="col-xs-8">
		    	<select-container container-data="settleAnalyseService.medicalOrgInfoList" clear="true" text="medicalOrgName" 
									    code="medicalOrgCode" result="query.org" 
									    data-type="true"  search-datas="['medicalOrgName','namePysr','nameWubi']" >
			</select-container>

		    </div>
		 </div>
	</div>
	
	<div class="row" ng-hide="searchMoreHide">
		<div class="form-group col-xs-4">
		    <label class="control-label col-xs-4 text-right">就诊类型:</label>
		    <div class="col-xs-8">
				<select ui-select2="{allowClear:true}" class="full-width"
				   ng-model="query.visit">
					<option value=""></option>
					<option ng-repeat="data in communityService.visitTypeDatas"
								value="{{data.id}}">{{data.medicalOrgName}}</option>
				</select>
		    </div>
		</div>
	</div>
</script>

<script type="text/ng-template" id="regionView_search_templ4">
  <div class="row">
  		<div class="form-group  col-xs-4">
			<label class="col-xs-4 control-label text-right">结算时间:</label>
			<div class="col-xs-8">
				<date-range-input class="full-width" ng-model="query.date" data-type="year" data-format="yyyy-mm"></date-range-input>
			</div>
		</div>
		 
		 <div class="form-group col-xs-4">
		    <label class="control-label col-xs-4 text-right">机构名称:</label>
		    <div class="col-xs-8">
		    	<select-container container-data="settleAnalyseService.medicalOrgInfoList" clear="true" text="medicalOrgName" 
									    code="medicalOrgCode" result="query.org" 
									    data-type="true"  search-datas="['medicalOrgName','namePysr','nameWubi']" >
				</select-container>


		    </div>
		 </div>
		<div class="form-group col-xs-4 ">
			<label class="control-label col-xs-4 text-right" for="orgName">科室:</label>
			<div class="col-xs-8">
				<select ui-select2="{allowClear:true}" class="full-width" ng-model="query.depart">
					<option value=""></option>
					<option ng-repeat="data in settleAnalyseService.medicalDeptInfoList" value="{{data.deptCode}}">{{data.deptName}}</option>
		   		</select>
			</div>
		</div>
	</div>
	
		 
	<!--	
	<div class="row" ng-hide="searchMoreHide">
		<div class="form-group col-xs-4">
		    <label class="control-label col-xs-4 text-right" for="orgName">医生:</label>
		    <div class="col-xs-8">
				<input type="text" class="form-control"   ng-model="query.doctor">
		    </div>
		</div>
	</div>
	-->
</script>

